Developer Documentation

QuickTime 4 API Documentation

Mac OS Sound

| Previous | Chapter Contents | Chapter Top | Next |

Using the SoundLib Shared library (PowerPC Only)

If you are developing a PowerPC-native application and wish to call some of the new routines in Sound Manager 3.0 and later, you need to link to the SoundLib shared library. This is because not all of the Sound Manager routine definitions are included in the InterfaceLib library currently built into Power Macintosh systems. The Sound Manager 3.1 extension installs a shared library with these missing routine definitions, and you use SoundLib to reference this library.

SoundLib is a "dummy" library, i.e., it contains just symbol references to the real shared library in the Sound Manager 3.1 extension. The SoundLib file should be used only for linking your PowerPC application--it should not be installed in the System Folder and is not to be given to users, because this can cause library conflicts. The SoundLib file simply provides the symbols that are then resolved from the Sound Manager 3.1 extension at run time. You should "weak" link with SoundLib and check in your application for the presence of Sound Manager 3.1 before calling one of these new routines (see sample code above). SoundLib is a .pef file, not a .xcoff file.

Some of the routines defined in SoundLib include GetCompressionInfo , GetSoundPreference , SetSoundPreference , UnsignedFixedMulDiv , SndGetInfo , SndSetInfo , and all the sound component interfaces needed when developing a native sound component.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |